@section('content')
<div class="row">
	<div class="col-md-6">
		<h2>Create a Product</h2>
	</div>
	<div class="col-md-6">
		<a href="{{ url('admin/product') }}" class="btn btn-default">Back to the list</a>
	</div>
</div>

<div class="row">
	<div class="col-md-12">
		<!-- if there are creation errors, they will show here -->
		{{ HTML::ul($errors->all()) }}
		
		{{ Form::open(array('url' => 'admin/product')) }}
			<div class="form-group">
				{{ Form::label('name', 'Name') }}
				{{ Form::text('name', Input::old('name'), array('class' => 'form-control')) }}
			</div>
			
			<div class="form-group">
				{{ Form::label('published', 'Published') }}
				{{ Form::select('published', ['0' => 'Disable', '1' => 'Enable'], Input::old('published'), array('class' => 'form-control')) }}
			</div>
			
			{{ Form::submit('Create', array('class' => 'btn btn-primary')) }}
		{{ Form::close() }}
	</div>
</div>
@stop